.class public Lcom/TwinBlade/PicturePassword/SeekBarPreference;
.super Landroid/preference/Preference;
.source "SourceFile"

# interfaces
.implements Landroid/widget/SeekBar$OnSeekBarChangeListener;


# instance fields
.field private final a:Ljava/lang/String;

.field private b:I

.field private c:I

.field private d:I

.field private e:I

.field private f:Ljava/lang/String;

.field private g:Ljava/lang/String;

.field private h:Landroid/widget/SeekBar;

.field private i:Ljava/lang/String;

.field private j:Landroid/widget/TextView;

.field private k:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 41
    invoke-direct {p0, p1, p2}, Landroid/preference/Preference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 21
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a:Ljava/lang/String;

    .line 27
    const/16 v0, 0x64

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->b:I

    .line 28
    const/4 v0, 0x0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    .line 29
    const/4 v0, 0x1

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->d:I

    .line 31
    const-string v0, ""

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->f:Ljava/lang/String;

    .line 32
    const-string v0, ""

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->g:Ljava/lang/String;

    .line 43
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->k:Landroid/content/Context;

    .line 44
    invoke-direct {p0, p1, p2}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 45
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 48
    invoke-direct {p0, p1, p2, p3}, Landroid/preference/Preference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 21
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a:Ljava/lang/String;

    .line 27
    const/16 v0, 0x64

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->b:I

    .line 28
    const/4 v0, 0x0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    .line 29
    const/4 v0, 0x1

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->d:I

    .line 31
    const-string v0, ""

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->f:Ljava/lang/String;

    .line 32
    const-string v0, ""

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->g:Ljava/lang/String;

    .line 50
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->k:Landroid/content/Context;

    .line 51
    invoke-direct {p0, p1, p2}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 52
    return-void
.end method

.method private a(Landroid/util/AttributeSet;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 82
    invoke-interface {p1, p2, p3}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 83
    if-nez v0, :cond_0

    .line 86
    :goto_0
    return-object p4

    :cond_0
    move-object p4, v0

    goto :goto_0
.end method

.method private a(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 55
    invoke-direct {p0, p2}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a(Landroid/util/AttributeSet;)V

    .line 56
    new-instance v0, Landroid/widget/SeekBar;

    invoke-direct {v0, p1, p2}, Landroid/widget/SeekBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    .line 57
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->b:I

    iget v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    sub-int/2addr v1, v2

    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setMax(I)V

    .line 58
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    invoke-virtual {v0, p0}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    .line 59
    return-void
.end method

.method private a(Landroid/util/AttributeSet;)V
    .locals 3
    .parameter

    .prologue
    .line 62
    const-string v0, "http://schemas.android.com/apk/res/android"

    const-string v1, "max"

    const/16 v2, 0x64

    invoke-interface {p1, v0, v1, v2}, Landroid/util/AttributeSet;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->b:I

    .line 63
    const-string v0, "http://robobunny.com"

    const-string v1, "min"

    const/4 v2, 0x0

    invoke-interface {p1, v0, v1, v2}, Landroid/util/AttributeSet;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    .line 65
    const-string v0, "http://robobunny.com"

    const-string v1, "unitsLeft"

    const-string v2, ""

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a(Landroid/util/AttributeSet;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->f:Ljava/lang/String;

    .line 66
    const-string v0, "http://robobunny.com"

    const-string v1, "units"

    const-string v2, ""

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a(Landroid/util/AttributeSet;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 67
    const-string v1, "http://robobunny.com"

    const-string v2, "unitsRight"

    invoke-direct {p0, p1, v1, v2, v0}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a(Landroid/util/AttributeSet;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->g:Ljava/lang/String;

    .line 68
    const-string v0, "http://schemas.android.com/apk/res/android"

    const-string v1, "key"

    const-string v2, "null"

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a(Landroid/util/AttributeSet;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->i:Ljava/lang/String;

    .line 71
    :try_start_0
    const-string v0, "http://robobunny.com"

    const-string v1, "interval"

    invoke-interface {p1, v0, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 72
    if-eqz v0, :cond_0

    .line 73
    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->d:I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 79
    :cond_0
    :goto_0
    return-void

    .line 75
    :catch_0
    move-exception v0

    .line 76
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a:Ljava/lang/String;

    const-string v2, "Invalid interval value"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method


# virtual methods
.method protected a(Landroid/view/View;)V
    .locals 5
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 143
    :try_start_0
    check-cast p1, Landroid/widget/RelativeLayout;

    .line 145
    const v0, 0x7f080028

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->j:Landroid/widget/TextView;

    .line 146
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->j:Landroid/widget/TextView;

    iget v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->e:I

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 147
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->j:Landroid/widget/TextView;

    const/16 v2, 0x1e

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setMinimumWidth(I)V

    .line 149
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    iget v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->e:I

    iget v3, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    sub-int/2addr v2, v3

    invoke-virtual {v0, v2}, Landroid/widget/SeekBar;->setProgress(I)V

    .line 151
    const v0, 0x7f080027

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 152
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->g:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 154
    const v0, 0x7f080029

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 155
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->f:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 157
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->k:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 158
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->i:Ljava/lang/String;

    const-string v3, "TimeFontSize"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 159
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    const-string v2, "InfoPanel"

    const/4 v3, 0x0

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    invoke-virtual {v1, v0}, Landroid/widget/SeekBar;->setEnabled(Z)V

    .line 171
    :cond_0
    :goto_0
    return-void

    .line 160
    :cond_1
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->i:Ljava/lang/String;

    const-string v3, "ExtraFontSize"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 161
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    const-string v3, "InfoDateBattery"

    const/4 v4, 0x0

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 162
    const-string v3, "InfoPanel"

    const/4 v4, 0x0

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    .line 161
    :goto_1
    invoke-virtual {v2, v0}, Landroid/widget/SeekBar;->setEnabled(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 167
    :catch_0
    move-exception v0

    .line 168
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a:Ljava/lang/String;

    const-string v2, "Error updating seek bar preference"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0

    :cond_2
    move v0, v1

    .line 162
    goto :goto_1

    .line 163
    :cond_3
    :try_start_1
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->i:Ljava/lang/String;

    const-string v1, "LockDelayMinute"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->i:Ljava/lang/String;

    const-string v1, "LockDelaySecond"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 164
    :cond_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->k:Landroid/content/Context;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/bd;->a(Landroid/content/Context;)Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setEnabled(Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public onBindView(Landroid/view/View;)V
    .locals 4
    .parameter

    .prologue
    .line 110
    invoke-super {p0, p1}, Landroid/preference/Preference;->onBindView(Landroid/view/View;)V

    .line 115
    :try_start_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    invoke-virtual {v0}, Landroid/widget/SeekBar;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    .line 116
    const v0, 0x7f08002a

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 118
    if-eq v1, v0, :cond_1

    .line 120
    if-eqz v1, :cond_0

    .line 121
    check-cast v1, Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 124
    :cond_0
    invoke-virtual {v0}, Landroid/view/ViewGroup;->removeAllViews()V

    .line 125
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->h:Landroid/widget/SeekBar;

    const/4 v2, -0x1

    .line 126
    const/4 v3, -0x2

    .line 125
    invoke-virtual {v0, v1, v2, v3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;II)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 133
    :cond_1
    :goto_0
    invoke-virtual {p0, p1}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a(Landroid/view/View;)V

    .line 134
    return-void

    .line 129
    :catch_0
    move-exception v0

    .line 130
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Error binding view: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method protected onCreateView(Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4
    .parameter

    .prologue
    .line 92
    const/4 v1, 0x0

    .line 95
    :try_start_0
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v2, "layout_inflater"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 97
    const v2, 0x7f030008

    const/4 v3, 0x0

    invoke-virtual {v0, v2, p1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 104
    :goto_0
    return-object v0

    .line 99
    :catch_0
    move-exception v0

    .line 101
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a:Ljava/lang/String;

    const-string v3, "Error creating seek bar preference"

    invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    move-object v0, v1

    goto :goto_0
.end method

.method protected onGetDefaultValue(Landroid/content/res/TypedArray;I)Ljava/lang/Object;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 209
    const/16 v0, 0x32

    invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v0

    .line 210
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    return-object v0
.end method

.method public onProgressChanged(Landroid/widget/SeekBar;IZ)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 175
    iget v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    add-int/2addr v0, p2

    .line 177
    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->b:I

    if-le v0, v1, :cond_1

    .line 178
    iget v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->b:I

    .line 185
    :cond_0
    :goto_0
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->callChangeListener(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 186
    iget v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->e:I

    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    sub-int/2addr v0, v1

    invoke-virtual {p1, v0}, Landroid/widget/SeekBar;->setProgress(I)V

    .line 195
    :goto_1
    return-void

    .line 179
    :cond_1
    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    if-ge v0, v1, :cond_2

    .line 180
    iget v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->c:I

    goto :goto_0

    .line 181
    :cond_2
    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->d:I

    const/4 v2, 0x1

    if-eq v1, v2, :cond_0

    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->d:I

    rem-int v1, v0, v1

    if-eqz v1, :cond_0

    .line 182
    int-to-float v0, v0

    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->d:I

    int-to-float v1, v1

    div-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->d:I

    mul-int/2addr v0, v1

    goto :goto_0

    .line 191
    :cond_3
    iput v0, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->e:I

    .line 192
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->j:Landroid/widget/TextView;

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 193
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->persistInt(I)Z

    goto :goto_1
.end method

.method protected onSetInitialValue(ZLjava/lang/Object;)V
    .locals 5
    .parameter
    .parameter

    .prologue
    .line 217
    if-eqz p1, :cond_0

    .line 218
    iget v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->e:I

    invoke-virtual {p0, v1}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->getPersistedInt(I)I

    move-result v1

    iput v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->e:I

    .line 233
    :goto_0
    return-void

    .line 221
    :cond_0
    const/4 v2, 0x0

    .line 223
    :try_start_0
    move-object v0, p2

    check-cast v0, Ljava/lang/Integer;

    move-object v1, v0

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .line 229
    :goto_1
    invoke-virtual {p0, v1}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->persistInt(I)Z

    .line 230
    iput v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->e:I

    goto :goto_0

    .line 225
    :catch_0
    move-exception v1

    .line 226
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->a:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Invalid default value: "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    move v1, v2

    goto :goto_1
.end method

.method public onStartTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 0
    .parameter

    .prologue
    .line 198
    return-void
.end method

.method public onStopTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 0
    .parameter

    .prologue
    .line 202
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/SeekBarPreference;->notifyChanged()V

    .line 203
    return-void
.end method
